﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class StartGameView : IView {
    public Button gameDescribedbtn;
    public Button setting;
    public Button quit;
    public GameObject gameDescribedView;
    public GameObject gameSettingView;
   

    public override void Init()
    {
        gameDescribedbtn.onClick.AddListener(()=> { gameDescribedView.SetActive(true); });
        setting.onClick.AddListener(()=> { gameSettingView.SetActive(true); });
        Show();
    }
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            Hide();
            GameManager.Instance.StartGame();
            UIMainMeun.Instance.ShowNextButton();
        }
    }
}
